if [ "Darwin" = `uname -s` ]; then
make -s -C forge/Darwin/clang/Release clean all
PROG=../forge/Darwin/clang/Release/vf1d/skin1d
fi
if [ "Linux" = `uname -s` ]; then
make -s -C forge/Linux-x86_64/intel/Release clean all
PROG=../forge/Linux-x86_64/intel/Release//vf1d/skin1d
fi
NV=`cat one.lua | grep volumes | sed -e 's/volumes//' | sed -e 's/=//' | sed -e 's/;//' | sed -e 's/ //g'`
dT=0.5
echo "#volumes= <$NV>"
mkdir -p tol3 tol4 tol5 tol6 tol7
cd tol3    && $PROG ../one.lua $dT $TMX 1e-3
cd ../tol4 && $PROG ../one.lua $dT $TMX 1e-4
cd ../tol5 && $PROG ../one.lua $dT $TMX 1e-5
cd ../tol6 && $PROG ../one.lua $dT $TMX 1e-6
cd ../tol7 && $PROG ../one.lua $dT $TMX 1e-7
cd .. && cat tol*/info$NV.dat > info$NV.dat
